package com.campusmarket.mapper;

import com.campusmarket.common.base.BaseMapper;
import com.campusmarket.dto.CommodityDto;
import com.campusmarket.model.Commodity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommodityMapper extends BaseMapper<Commodity> {
    /**
     * 获取总数
     * @return
     */
    Integer selectCount();

    List<CommodityDto> selectList(@Param("page") Integer page, @Param("rows") Integer rows, @Param("keywords") String keywords,@Param("userId")Long userId);
}
